﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NewOverride
{
    class Program
    {
        static void Main(string[] args)
        {
            Employee em = new Employee();
            Person p = em;
            
            //1.验证override
            em.GetInfo();
            p.GetInfo();

            //2.验证new
            em.GetName();
            p.GetName();

            Console.ReadLine();
        }
    }
}
